| Conditions | 2 |
| Paths | 2 |
| Total Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | import SearchForm from './modules/SearchForm'; |
||
| 14 | window.langeditor.modules.forEach((item) => { |
||
| 15 | // try to find an element |
||
| 16 | let element = $(this).find(`*[data-module="${item.name}"]`); |
||
| 17 | |||
| 18 | if (element.length) { |
||
| 19 | window.langeditor.instances.push(new item.class(element[0])); |
||
| 20 | } |
||
| 21 | }); |
||
| 22 | } |
||
| 25 | })(jQuery); |